﻿<UserControl x:Class="XamlPhysics.Samples.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:physics="clr-namespace:XamlPhysics;assembly=XamlPhysics">

    <Viewbox Stretch="Uniform">
        <Grid x:Name="LayoutRoot" Width="1024" Height="768">
            <Grid.Clip>
                <RectangleGeometry Rect="0, 0, 1024, 768"/>
            </Grid.Clip>
            
            <Image Source="Images/Logo.png" Width="99" Height="99" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <navigation:Frame x:Name="UxSampleViewer" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" Source="/SampleMenu.xaml">
                <navigation:Frame.UriMapper>
                    <uriMapper:UriMapper>
                        <uriMapper:UriMapping Uri="/Samples/{TypeName}" MappedUri="/Viewer.xaml?Sample={TypeName}"/>
                    </uriMapper:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
        </Grid>
    </Viewbox>
</UserControl>